package com.yfp.client.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yfp.client.domain.OrderDetail;

import java.util.List;

/**
 * @author admin
 * @description 针对表【order_detail】的数据库操作Service
 * @createDate 2024-05-24 10:39:52
 */
public interface OrderDetailService extends IService<OrderDetail> {

    /**
     * 根据订单id查询订单详情
     *
     * @param orderId
     * @return
     */
    List<OrderDetail> listByOrderId(String orderId);

    /**
     * 根据订单详情id查询订单详情
     *
     * @param orderDetailId
     * @return
     */
    OrderDetail listByOrderDetailId(String orderDetailId);

    /**
     * 根据套餐id查询订单详情
     *
     * @param packageId
     * @return
     */
    List<OrderDetail> listByPackageId(String packageId);

    /**
     * 根据订单详情id集合查询订单详情
     *
     * @param orderDetailId
     * @return
     */
    List<OrderDetail> listByOrderDetailIds(List<String> orderDetailId);

    /**
     * 设置排队时间
     * @param orderId
     */
    void setQueueTime(String orderId);
}
